package com.sjb.sixteen_journey_backend.service;

import com.sjb.sixteen_journey_backend.common.R;
import com.sjb.sixteen_journey_backend.entity.ChatList;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 私聊表 服务类
 * </p>
 *
 * @author jcz
 * @since 2024-08-17
 */
public interface IChatListService extends IService<ChatList> {

    public R addChatList(ChatList chatList);

    R<List<ChatList>> chatSingle(Integer fromId, Integer toId);

    R getCountByFromUserId();

    R changeNotReaderChat(Integer toId);
    ChatList getChatListById(Integer id);
    R deleteChat(Integer id);
}
